
var c=0
var t
function timedCount()
{
document.getElementById('txt').value=c
c=c+1
t=setTimeout("timedCount()",1000)
    document.getElementById("b").style.display = "none";
    document.getElementById("b2").style.display = "block";
}

function stopCount()
{
c=0;
setTimeout("document.getElementById('txt').value=0",0);
clearTimeout(t);
    document.getElementById("b").style.display = "block";
    document.getElementById("b2").style.display = "none";
}
